package MVC.view.returnframe;

import javax.swing.event.TableModelEvent;
import javax.swing.table.DefaultTableModel;

public class MyTableModel extends DefaultTableModel {

	public MyTableModel(Object[][] data,String[] columnNames){
		super(data , columnNames);
	}
	
	public void changeData(Object[][] data){
		setDataVector(convertToVector(data), this.columnIdentifiers);
		newDataAvailable(new TableModelEvent(this)); 
	}
	
	@Override
	public boolean isCellEditable(int row, int column) 
	   {
	     return false;
	 }
}
